package server.conf;

import server.MyClassLoader;

import java.io.File;
import java.util.Map;

/**
 * @author bwcx_jzy
 * @since 2021/11/19
 */
public class Context {

    private Map<String, ServletWrapper> servletMap;

    private String url;

    private final ClassLoader classLoader;

    public Context(File file) {
        this.classLoader = new MyClassLoader(file);
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Map<String, ServletWrapper> getServletMap() {
        return servletMap;
    }

    public void setServletMap(Map<String, ServletWrapper> servletMap) {
        this.servletMap = servletMap;
    }

    public ClassLoader getClassLoader() {
        return classLoader;
    }
}
